Int (number)

Basic and Crystal syntax.

Argument

Number value

Returns

Whole number value

Action

Int returns the integer portion of a given number by rounding it down to the next smallest integar.

Examples

The following examples are applicable to both Basic and Crystal syntax:

Int (123.678)

Returns 123.

Int (-123.678)

Returns -124.

Int (-123.1)

Returns -124.

Comments

Fix (-10.2)

Truncate (-10.2)

Both return -10.

Int (-10.2)

Returns -11.

Related topics

Fix

Truncate (x), Truncate (x, #places)



Seagate Software IMG Holdings, Inc.
http://www.seagatesoftware.com
Support services:
http://support.seagatesoftware.com